package com.gr.labbackend.controller.exhibit.material;

import com.alibaba.fastjson.JSONObject;
import com.gr.labbackend.service.exhibit.material.GetMaterialInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetMaterialInfoController {

    @Autowired
    private GetMaterialInfoService getMaterialInfoService;

    @GetMapping("/api/exhibit/material/get-record-info")
    public JSONObject getMaterialInfo(@RequestParam int page) {
        return getMaterialInfoService.getMaterialInfo(page);
    }

}
